import request from '@/utils/request'

// 查询故障处理列表
export function listFaultHandle(query) {
  return request({
    url: '/app/faultHandle/list',
    method: 'get',
    params: query
  })
}

// 查询故障处理详细
export function getFaultHandle(handleId) {
  return request({
    url: '/app/faultHandle/' + handleId,
    method: 'get'
  })
}

// 新增故障处理
export function addFaultHandle(data) {
  return request({
    url: '/app/faultHandle',
    method: 'post',
    data: data
  })
}

// 修改故障处理
export function updateFaultHandle(data) {
  return request({
    url: '/app/faultHandle',
    method: 'put',
    data: data
  })
}

// 删除故障处理
export function delFaultHandle(handleId) {
  return request({
    url: '/app/faultHandle/' + handleId,
    method: 'delete'
  })
}
